package com.lyc.reflect;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/10/27 9:40
 * @description：
 * @modified By：
 * @version:
 */
public class Text {
    public static void main(String[] args) throws Exception{
        Class<Student> studentClass = Student.class;

        Student student = new Student();
        Class<? extends Student> aClass = student.getClass();

        Class<?> aClass1 = Class.forName("reflect.Student");
    }
}

class Student{
    private String name;
    private Integer age;

    public void show(){
        System.out.println("小诗诗");
    }
}